package com.compass.doctor.ui.home

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.compass.doctor.base.BaseVBActivity
import com.compass.doctor.databinding.ActivityFollowUpBinding
import com.compass.doctor.databinding.ActivityFollowUpDetailsBinding
import com.compass.doctor.ui.home.adapter.ExtraConsumablesAdapter
import com.compass.doctor.ui.home.adapter.HIsFollowUpAdapter
import com.google.android.flexbox.FlexDirection
import com.google.android.flexbox.FlexWrap
import com.google.android.flexbox.FlexboxLayoutManager
import com.google.android.flexbox.JustifyContent

/**
 * Description： 随访详情
 * Date:2024/1/18 10:05
 */
class FollowUpDetailsActivity :BaseVBActivity<ActivityFollowUpDetailsBinding>() {



    companion object {
        fun start(context: Context) {
            val intent = Intent(context, FollowUpDetailsActivity::class.java)
            context.startActivity(intent)
        }
    }

    private lateinit var hIsFollowUpAdapter: HIsFollowUpAdapter//历史随访列表
    private lateinit var extraConsumablesAdapter: ExtraConsumablesAdapter
    val tags: MutableList<String> = mutableListOf()
    override fun initView(savedInstanceState: Bundle?) {
        extraConsumablesAdapter = ExtraConsumablesAdapter()
        mBinding.recyclerExtra.apply {
            layoutManager = LinearLayoutManager(this@FollowUpDetailsActivity,LinearLayoutManager.HORIZONTAL,false)
            adapter = extraConsumablesAdapter
        }
        tags.add("呼吸道感染")
        tags.add("慢性萎缩性胃炎")
        tags.add("发烧")
        tags.add("慢性萎缩性胃炎")
//        extraConsumablesAdapter.setData(tags)
    }

}